#!/bin/bash
../flatc --cpp monster.fbs

# Execute the sample.
g++ -I ../include -o cpp_A cpp_A.cpp
g++ -I ../include -o cpp_B cpp_B.cpp

if [ -f cpp_A -a -f cpp_B ];
then
  ./cpp_A &
  ./cpp_B &
fi

sleep 3
rm cpp_A cpp_B monster_generated.h
